<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table id="taData">
     <tr>
         <input type="text" name="keyword">
         <input type="button" value="查询" onclick="query()">
         <input type="button" value="添加" onclick="add()">
     </tr>
     <tr>
         <th>ID</th>
         <th>标题</th>
         <th>摘要</th>
         <th>内容</th>
         <th>分类</th>
         <th>作者</th>
         <th>发表时间</th>
         <th>操作</th>
     </tr>
    </table>
    <script src="./JS/jquery-3.6.0.min.js"></script>
    <script src="./JS/api.js"></script>
    <script src="./JS/init.js"></script>
    <script>
        function add(obj){
            window.location.href='./addOrEdit.html'
        }
        function query(){
            let keyword = $('[name=keyword]').val();
            getQuery(keyword);
        }
    </script>
</body>
</html>